home *** CD-ROM | disk | FTP | other *** search
/ Aminet 28 / Aminet 28 (1998)(GTI - Schatztruhe)[!][Dec 1998].iso / Aminet / util / misc / PowerInstaller.lha / PowerInstaller / powInstDemo / Install.powscript < prev    next >
Encoding:
Text File  |  1998-09-22  |  3.1 KB  |  149 lines

  1. ;
  2. ; $VER: PowerInstaller_Installation 1.0 - By Fabio Rotondo
  3. ;
  4. ; Descr: This is just a very fast demo of PowerInstaller
  5. ;        capabilities
  6. ;
  7.  
  8. Define GLOBAL UserLevel 0
  9. Define GLOBAL DestDir   "Ram:"
  10. Define GLOBAL Log       1
  11.  
  12. BeginGUI "Install - Step 1"
  13.   Image TOPIMAGE "gfx/head.iff"
  14.  
  15.   Message "Welcome to PowerInstaller!!!"
  16.   Message " "
  17.   Message "PowerInstaller is a brand new Installation Program"
  18.   Message "that will help you developing and sharing installations"
  19.   Message "in a quick and handy way."
  20.   Message " "
  21.   Message "PowerInstaller is also -light years- better than"
  22.   Message "Commodore's Installer, because it is faster, with a brand"
  23.   Message "new language and very flexible."
  24.   Message ""
  25.   Message "Why don't you give it a try?"
  26.  
  27.   Gadgets NOHELP NOPREV
  28.  
  29.   SetArchive "PowInst_Data.lha"
  30.   CollectFiles
  31. EndGUI
  32.  
  33. BeginGUI "Install - Step 2"
  34.  
  35.   Message "First of all, please, insert your skill about Amiga."
  36.   Message " "
  37.   Message "Thank you to PowerInstaller capabilities, this script"
  38.   Message "will be able to adapt to your own knowledge."
  39.   Message " "
  40.   Message " "
  41.  
  42.   Radio "I am just a Novice"
  43.   Radio "I know something about my Amiga"
  44.   Radio "Hey, guys, I've written AmigaOS!"
  45.   Radio VAR UserLevel
  46.  
  47. EndGUI
  48.  
  49. BeginGUI "Install - Step 3"
  50.   SplashWindow "splash/splash1.iff" 100 0
  51.  
  52.  
  53.   If $UserLevel EQUAL 0
  54.  
  55.     Message "Ok. You are a novice, then."
  56.     Message " "
  57.     Message "Well... maybe PowerInstaller could be the first"
  58.     Message "Amiga Language you'll learn :-)"
  59.  
  60.   EndIF
  61.  
  62.   If $UserLevel EQUAL 1
  63.   
  64.     Message "I hope that PowerInstaller will match your needs."
  65.     Message " "
  66.   EndIf
  67.  
  68.   If $UserLevel EQUAL 2
  69.    
  70.     Message "Watch Everybody!!!"
  71.     Message ""
  72.     Message "Here we have Carl or someone like him!"
  73.     Message "You are welcome. Hope PowerInstaller is not too simple"
  74.     Message "for a guru like you :)"
  75.   EndIf
  76.  
  77.   Message " "
  78.   Message "Please, select Installation path."
  79.  
  80.   AskPath DestDir
  81.  
  82. EndGUI
  83.  
  84. BeginGUI "Install - Step 4"
  85.  
  86.   If $UserLevel EQUAL 0
  87.     SetFiles "#?" 1
  88.   EndIf
  89.  
  90.   If $UserLevel MAJOR 0
  91.  
  92.     Message "Please, tell me what demo scripts"
  93.     Message "you just want to install."
  94.     Message " "
  95.  
  96.     SelectFiles "#?"
  97.   EndIf
  98.  
  99.   Set Gadget_Next "Next >"
  100. EndGUI
  101.  
  102. BeginGUI "Install - Step 5"
  103.  
  104.   Message "PowerInstaller demo scripts"
  105.   Message "will be installed in this directory:"
  106.   Message " "
  107.   Message "$DestDir"
  108.  
  109.   Message " "
  110.   Message "If settings are ok, press - Install! - right now"
  111.   Message "otherwise, you can go back make changes to your"
  112.   Message "settings."
  113.  
  114.   Set Gadget_Next "- Install! -"
  115.  
  116. EndGUI
  117.  
  118. BeginGUI "Install - Step 6"
  119.  
  120.   SplashWindow "splash/splash2.iff"
  121.  
  122.   InstallFiles $DestDir
  123. EndGUI
  124.  
  125. BeginGUI "Install - Step 7"
  126.  
  127.   Message "PowerInstall demo scripts Installation Completed!"
  128.   Message " " 
  129.   Message "You can find some example scripts under the directory"
  130.   Message "demoscripts/ in the $DestDir path or partition"
  131.  
  132.   Gadgets NOHELP NOPREV NOCANCEL
  133.  
  134.   Check "Save LogFile in $DestDir" Log $Log
  135.  
  136.   Set Gadget_Next "Bye"
  137. EndGUI
  138.  
  139. BeginGUI "Install - Step 8"
  140.   Define name $DestDir
  141.  
  142.   If $Log EQUAL 1
  143.     AddPath name "script.log"
  144.   EndIf
  145.  
  146.   SaveLog $name
  147. EndGUI
  148.  
  149.